package com.abel.web.view;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.abel.domain.WorkExperience;
import com.abel.domain.types.State;

public class WorkExperienceViewBean extends BaseViewBean implements Serializable {

	protected final Log logger = LogFactory.getLog(getClass());
	
	private static final long serialVersionUID = -8925656406123054735L;

	private int wrkHistId;
	
	private String wrkStartDate;

	private String wrkEndDate;

	private String wrkCompanyName;
		
	private String wrkAddrLine1;

	private String wrkAddrLine2;

	private String wrkCity;
		
	private String wrkState;

	private String wrkZip;

	private String wrkBusinessType;
		
	private String wrkPosition;

	private String wrkSupervisorName;

	private String wrkPayMode;
	
	private long wrkGrossPay;

	private String wrkLeaveReason;

	private String wrkResponsibility;
	
	private java.util.Date wrkCreateDts;

	private int aplId;
			
	private int editId;

	private int delId;
	
	private List<WorkExperience> workList;


	/**
	 * @return the wrkHistId
	 */
	public int getWrkHistId() {
		return wrkHistId;
	}

	/**
	 * @param wrkHistId the userId to set
	 */
	public void setWrkHistId(int wrkHistId) {
		this.wrkHistId = wrkHistId;
	}

	/**
	 * @return the wrkStartDate
	 */
	public String getWrkStartDate() {
		return wrkStartDate;
	}

	/**
	 * @param wrkStartDate the wrkStartDate to set
	 */
	public void setWrkStartDate(String wrkStartDate) {
		
		this.wrkStartDate = wrkStartDate;
	}

	/**
	 * @return the wrkEndDate
	 */
	public String getWrkEndDate() {
		return wrkEndDate;
	}

	/**
	 * @param wrkEndDate the wrkEndDate to set
	 */
	public void setWrkEndDate(String wrkEndDate) {
		this.wrkEndDate = wrkEndDate;
	}

	/**
	 * @return the wrkCompanyName
	 */
	public String getWrkCompanyName() {
		return wrkCompanyName;
	}

	/**
	 * @param wrkCompanyName the wrkCompanyName to set
	 */
	public void setWrkCompanyName(String wrkCompanyName) {
		this.wrkCompanyName = wrkCompanyName;
	}

	/**
	 * @return the wrkAddrLine1
	 */
	public String getWrkAddrLine1() {
		return wrkAddrLine1;
	}

	/**
	 * @param wrkAddrLine1 the wrkAddrLine1 to set
	 */
	public void setWrkAddrLine1(String wrkAddrLine1) {
		this.wrkAddrLine1 = wrkAddrLine1;
	}

	/**
	 * @return the wrkAddrLine2
	 */
	public String getWrkAddrLine2() {
		return wrkAddrLine2;
	}

	/**
	 * @param wrkAddrLine2 the wrkAddrLine2 to set
	 */
	public void setWrkAddrLine2(String wrkAddrLine2) {
		this.wrkAddrLine2 = wrkAddrLine2;
	}

	/**
	 * @return the wrkCity
	 */
	public String getWrkCity() {
		return wrkCity;
	}

	/**
	 * @param wrkCity the wrkCity to set
	 */
	public void setWrkCity(String wrkCity) {
		this.wrkCity = wrkCity;
	}

	/**
	 * @return the wrkState
	 */
	public String getWrkState() {
		return wrkState;
	}

	/**
	 * @param wrkState the wrkState to set
	 */
	public void setWrkState(String wrkState) {
		this.wrkState = wrkState;
	}

	/**
	 * @return the wrkState
	 */
	public String getWrkZip() {
		return wrkZip;
	}

	/**
	 * @param wrkZip the wrkZip to set
	 */
	public void setWrkZip(String wrkZip) {
		this.wrkZip = wrkZip;
	}

	/**
	 * @return the wrkBusinessType
	 */
	public String getWrkBusinessType() {
		return wrkBusinessType;
	}

	/**
	 * @param wrkBusinessType the wrkBusinessType to set
	 */
	public void setWrkBusinessType(String wrkBusinessType) {
		this.wrkBusinessType = wrkBusinessType;
	}

	/**
	 * @return the wrkPosition
	 */
	public String getWrkPosition() {
		return wrkPosition;
	}

	/**
	 * @param wrkPosition the wrkPosition to set
	 */
	public void setWrkPosition(String wrkPosition) {
		this.wrkPosition = wrkPosition;
	}

	/**
	 * @return the wrkSupervisorName
	 */
	public String getWrkSupervisorName() {
		return wrkSupervisorName;
	}

	/**
	 * @param wrkSupervisorName the wrkSupervisorName to set
	 */
	public void setWrkSupervisorName(String wrkSupervisorName) {
		this.wrkSupervisorName = wrkSupervisorName;
	}


	/**
	 * @return the wrkSupervisorName
	 */
	public String getWrkLeaveReason() {
		return wrkLeaveReason;
	}

	/**
	 * @param wrkSupervisorName the wrkSupervisorName to set
	 */
	public void setWrkLeaveReason(String wrkLeaveReason) {
		this.wrkLeaveReason = wrkLeaveReason;
	}

	/**
	 * @return the wrkResponsibility
	 */
	public String getWrkResponsibility() {
		return wrkResponsibility;
	}

	/**
	 * @param wrkResponsibility the wrkResponsibility to set
	 */
	public void setWrkResponsibility(String wrkResponsibility) {
		this.wrkResponsibility = wrkResponsibility;
	}

	/**
	 * @return the wrkCreateDts
	 */
	public java.util.Date getWrkCreateDts() {
		return wrkCreateDts;
	}

	/**
	 * @param wrkCreateDts the wrkCreateDts to set
	 */
	public void setWrkCreateDts(java.util.Date wrkCreateDts) {
		this.wrkCreateDts = wrkCreateDts;
	}

	/**
	 * @return the aplId
	 */
	public int getAplId() {
		return aplId;
	}

	/**
	 * @param aplId the aplId to set
	 */
	public void setAplId(int aplId) {
		this.aplId = aplId;
	}

		/**
		 * @return the editId for edit link
		 */
		public int getEditId() {
			return editId;
		}

		/**
		 * @param editId set the editId for edit link
		 */
		public void setEditId(int editId) {
			this.editId = editId;
		}

		/**
		 * @return the delId for delete link
		 */
		public int getDelId() {
			return delId;
		}

		/**
		 * @param delId to set the editInfoId to be deleted
		 */
		public void setDelId(int delId) {
			this.delId = delId;
		}

		/**
		 * @return the eduList
		 */
		public List<WorkExperience> getWorkList() {
			return workList;
		}

		/**
		 * @param workList the workList to set
		 */
		public void setWorkList(List<WorkExperience> workList) {
			this.workList = workList;
		}
		
		/**
		 * A utility method to return all states
		 * @return
		 */
		public State[] getStates() {
			return State.values();
		}

		/**
		 * @return a utility method with translates the state code to the state name
		 */
		public String getWrkStateName(String wrkState) {
			return State.getStateName(wrkState);
		}




		/**
		 * @return the wrkPayMode
		 */
		public String getWrkPayMode() {
			return wrkPayMode;
		}

		/**
		 * @param wrkPayMode the wrkPayMode to set
		 */
		public void setWrkPayMode(String wrkPayMode) {
			this.wrkPayMode = wrkPayMode;
		}

		/**
		 * @return the wrkGrossPay
		 */
		public long getWrkGrossPay() {
			return wrkGrossPay;
		}

		/**
		 * @param wrkGrossPay the wrkGrossPay to set
		 */
		public void setWrkGrossPay(long wrkGrossPay) {
			this.wrkGrossPay = wrkGrossPay;
		}


		
		
}
